package com.guiyang.practice.mess1.service;

import com.guiyang.practice.mess1.entity.MessageType;
import java.util.List;

public interface MessageTypeService {
    List<MessageType> getAllTypes();
    List<MessageType> getEnabledTypes();
    MessageType getTypeById(Long id);
    boolean addType(MessageType messageType);
    boolean updateType(MessageType messageType);
    boolean disableType(Long id);
    boolean enableType(Long id);  // 新增启用方法
    boolean isTypeCodeExists(String typeCode, Long excludeId);
}